#global functions for python
